﻿<?xml version="1.0" encoding="utf-8"?>                                         
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
<xsl:decimal-format name='H' grouping-separator='-' />
<xsl:decimal-format name='S' grouping-separator='/' />
<xsl:decimal-format name='C' grouping-separator=',' />
<xsl:template match="/">                                       
<html version="Version 1.0.0.1 ( build : 800902_001 )">
<HEAD>

<META http-equiv="Content-Type" content="text/html; charset=utf-8"></META></HEAD>    
<BODY leftmargin='10' >
    <xsl:apply-templates/>                                       
    </BODY>
  </html>                                                        
</xsl:template>                                                  
                                                                 
<xsl:template match="MXMESSAGE">                               
    <xsl:apply-templates select="common"/>          
</xsl:template>                                                  
<xsl:template match="common">                       


<!-->
모든화면에서\n공통으로\nINCLUDE 하는 파일
<-->
<!-->
공통스크립트\nicommon, ing, \ncalendar, authcheck,\ngridconf
<--><script language="javascript" name="icommon" mxtype="wscript" src="/resource/script/icommon.js">
</script><!-->mxtype@wscript<--><script name="ing" mxtype="wscript" src="/resource/script/ing.js">
</script><!-->mxtype@wscript<--><script language="JavaScript" name="calendar" mxtype="wscript" src="/resource/script/calendar.js">
</script><!-->mxtype@wscript<--><script name="authcheck" mxtype="wscript" src="/resource/script/authcheck.js">
</script><!-->mxtype@wscript<--><script language="JavaScript" name="gridconf" mxtype="wscript" capx="41" capy="3" src="/resource/script/gridconf.js">
</script><!-->mxtype@wscript<-->
<!-->
공통스크립트\npopup, Session\nSaveLoadPK, ibsCommon\nconstants
<--><script name="popup" mxtype="wscript" src="/resource/script/popup.js">
</script><!-->mxtype@wscript<--><script language="JavaScript" name="session" mxtype="wscript" capx="87" capy="12">
<xsl:text disable-output-escaping="yes">
<![CDATA[
function fnCheckAjaxResult(resultCode, resultMsg) {			
	if (resultMsg == null || resultMsg == "") {
		fnLostSession();
	} else {
		alert(resultMsg);						
	}
}
function fnLostSession() {
	alert("세션이 종료되었습니다.");
//	alert("프로그램 개발중에 웹서버가 재시작 되었거나 오류가 발생하였습니다.");
	top.location.href = "/iFrame?Class=com.ibk.pccs.sys.Login&" + iconst.CMD + "=SSO";
}
]]>
</xsl:text>
</script><!-->mxtype@wscript<--><script language="JavaScript" name="saveloadPK" mxtype="wscript" capx="36" capy="84">
<xsl:text disable-output-escaping="yes">
<![CDATA[
var gGridPkCol = null;
var gGridPkData = null;
//function fnTest() {
//	debug_mode = true;
//	fnSaveGridPk("grdProgram", "PRRM_ID");
//	fnInit();
//	fnLoadGridPk("grdProgram");
//}
// grid pk저장
// fnSaveGridPk("grid명", "pk컬럼명1", "pk컬럼명2", "pk컬럼명3"...);
// grid 에 pk 컬럼명이 필수적으로 존재하여야함
function fnSaveGridPk() {
	
	gGridPkCol = new Array();
	gGridPkData = new Array();
    var argCnt = fnSaveGridPk.arguments.length;
	
	var _grid;
	var _gridCurrentRow;
	
    var _objectID;
    var _object;
	var _tempData;
    //  PK갯수 LOOP
    for(var i=0; i<argCnt; i++) {
        _objectID = fnSaveGridPk.arguments[i];
        _object = document.getElementById(_objectID);
		if (i == 0) {
			_grid = _object;
			_gridCurrentRow = _grid.GetCurrentRowIndex;
		} else {
			_tempData = _grid.GetCellDataByName(_gridCurrentRow, _objectID);
			gGridPkCol[i-1] = _objectID;
			gGridPkData[i-1] = _tempData;
//			alert(_gridCurrentRow + "," + _tempData);
		}
    } // END OF for LOOP
}
// fnLoadGridPk("grid명") 
function fnLoadGridPk() {
	var _objectID = fnLoadGridPk.arguments[0];
	var _object = document.getElementById(_objectID);
	
	var _gridRowCount = _object.GetTotRowCnt();
	var _findRow = 0;
	
	var _matchCount = 0;
	
	for (var i=0; i < _gridRowCount; i++) {
		_matchCount = 0;
		
		for (var j=0; j < gGridPkCol.length; j++) {
			Debug("gGridPkData[j] == _object.GetCellDataByName(i, gGridPkCol[j]) : " + gGridPkData[j] + "," + _object.GetCellDataByName(i, gGridPkCol[j]) );
			if ( gGridPkData[j] == _object.GetCellDataByName(i, gGridPkCol[j])) { 
				_matchCount++;
				
				Debug("_matchCount == gGridPkCol.length" + _matchCount + "," +  gGridPkCol.length);
				if (_matchCount == gGridPkCol.length) {
					_findRow = i;
					break;
				} 
			} else {
				break;
			}
		}
		
		if (_findRow != 0) {
			break;
		}
	}
	
//	alert(_findRow);
	_object.SetCellFocusWithClickEvent(_findRow, 1);
//	_object.SetSelectRow(_findRow);
}
]]>
</xsl:text>
</script><!-->mxtype@wscript<--><script language="JavaScript" name="ibsCommon" mxtype="wscript" capx="2" capy="19">
<xsl:text disable-output-escaping="yes">
<![CDATA[
//필수 입력사항 스타일 변경 및 readonly 세팅 함수
function fnStyleChange(obj, className , readOnly) {
	if ( ! obj ) {
	   alert("OBJECT가 존재하지 않습니다.");
	   return;
	}
	
	if ( obj.tagName == "SELECT" || obj.type == "radio" ){
		obj.disabled  = ( readOnly ) ? true : false;
	}else{
		obj.readOnly  = ( readOnly ) ? true : false;
	}
	obj.tabIndex  = ( readOnly ) ? -1 : 0;
	obj.className = className;
	
}
function trim(str) {
	return str.replace(/ /g,"");
}
function fnClearInput(obj1, obj2, obj3) {
	if (obj1 != null && obj1 != "") {
		iobject.setValue(obj1, "");
	}
	
	if (obj2 != null && obj2 != "") {
		iobject.setValue(obj2, "");
	}
	
	if (obj3 != null && obj3 != "") {
		iobject.setValue(obj3, "");
	}
	
}
]]>
</xsl:text>
</script><!-->mxtype@wscript<--><script language="JavaScript" name="wscript1" mxtype="wscript" src="/resource/script/constants.js">
</script><!-->mxtype@wscript<-->
<!-->
사번 - 사용자 이름 변환등\najax 변환 함수\n휴일체크 스크립트
<--><script language="JavaScript" name="s" mxtype="wscript" capx="1" capy="558">
<xsl:text disable-output-escaping="yes">
<![CDATA[
/*********************************************************
*  자동찾기
*********************************************************/
// 사번 -> 이름
// pEmno : 6자리 사번
// objTxtBox : 이름을 세팅할 텍스트 박스
function fnConvertEmnoToEmnm(pEmno, objTxtBox) {
	var info = new Object();
	var flag = false;
	if (pEmno.length == 6) {
		iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
		iajax.addParam(iconst.CMD, iconst.CONVERT2EMPLNM);
		iajax.addParam("EMNO", pEmno);
		iajax.send();
		
		var resultCode = iajax.getValue(iconst.RESULT_CODE);
		var resultMsg = iajax.getValue(iconst.RESULT_MSG);
		
		// 거래 성공 여부
		if ( resultCode == iconst.SUCCESS_CODE ){
			
			info = iajax.getInfoFromXmlDoc(iajax.getXmlDoc(), "ConvertResult");
			var EMPL_NM = iajax.getValue("EMPL_NM");
			
			if ( arguments[1] ){
				objTxtBox.value = istring.nvlString(EMPL_NM, "");
			}else{
				flag = true;
			}
		} else {
			fnCheckAjaxResult(resultCode, resultMsg);
		}		
	} else {
		if ( arguments[1] ){
			objTxtBox.value = "";
		}else{
			flag = true;
		}
	}
	if ( flag ){
		info.EMPL_NM = istring.nvlString(info.EMPL_NM, "");
	}
		
	return info;
}
// 부점코드 -> 한글부점명
// pBrcd : 4자리 부점코드
// objTxtBox : 이름을 세팅할 텍스트 박스
function fnConvertBrcdToKrnbrncnm(pBrcd, objTxtBox, pFnfuBrncRoleCd) {
	var info = new Object();
	var flag = false;
	if (pBrcd.length == 3) {
		pBrcd = "0"+pBrcd;
	}
	if (pBrcd.length == 4) {
		iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
		iajax.addParam(iconst.CMD, iconst.CONVERT2KRN_BRNC_NM);
		iajax.addParam("FNFU_BRCD", pBrcd);
		if ( arguments[2] && pFnfuBrncRoleCd != "" )
			iajax.addParam("FNFU_BRNC_ROLE_CD", pFnfuBrncRoleCd);
		iajax.send();
		
		var resultCode = iajax.getValue(iconst.RESULT_CODE);
		var resultMsg = iajax.getValue(iconst.RESULT_MSG);
		
		// 거래 성공 여부
		if ( resultCode == iconst.SUCCESS_CODE ){
			info = iajax.getInfoFromXmlDoc(iajax.getXmlDoc(), "ConvertResult");
			var KRN_BRNC_NM = iajax.getValue("KRN_BRNC_NM");
			
			if ( arguments[1] ){
				objTxtBox.value = istring.nvlString(info.KRN_BRNC_NM, "");
			} else {
				flag = true;
			}
		} else {
			fnCheckAjaxResult(resultCode, resultMsg);
		}		
	} else {
		if ( arguments[1] ){
			objTxtBox.value = "";
		}else{
			flag = true;
		}
	}
	if ( flag ){
		info.KRN_BRNC_NM = istring.nvlString(info.KRN_BRNC_NM, "");
	}
	return info;
}
// 기관코드 -> 한글기관명
// pBrcd : 4자리 기관코드
// objTxtBox : 이름을 세팅할 텍스트 박스
function fnConvertInttcdToInttnm(pBrcd, objTxtBox) {
	var info = new Object();
	var flag = false;
	
	if (pBrcd.length == 4) {
		iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
		iajax.addParam(iconst.CMD, iconst.CONVERT2INTT_NM);
		iajax.addParam("FNFU_ISCD", pBrcd);
		iajax.send();
		var resultCode = iajax.getValue(iconst.RESULT_CODE);
		var resultMsg = iajax.getValue(iconst.RESULT_MSG);
		
		// 거래 성공 여부
		if ( resultCode == iconst.SUCCESS_CODE ){
			info = iajax.getInfoFromXmlDoc(iajax.getXmlDoc(), "ConvertResult");
			if ( arguments[1] ){
				objTxtBox.value 	= istring.nvlString(info.INTT_NM        ,"");
			} else {
				flag = true;
			}
		} else {
			fnCheckAjaxResult(resultCode, resultMsg);
		}		
	} else {
		if ( arguments[1] ){
			objTxtBox.value     = "";
		}else{
			flag = true;
		}
	}
	if ( flag ){
		info.FNFU_ISCD      = istring.nvlString(info.FNFU_ISCD      ,"");
		info.INTT_NM        = istring.nvlString(info.INTT_NM        ,"");
		info.CRNO           = istring.nvlString(info.CRNO           ,"");
		info.BRNO           = istring.nvlString(info.BRNO           ,"");
		info.BRNG_INTT_YN   = istring.nvlString(info.BRNG_INTT_YN   ,"");
		info.LNDN_INTT_YN   = istring.nvlString(info.LNDN_INTT_YN   ,"");
		info.RCMD_INTT_YN   = istring.nvlString(info.RCMD_INTT_YN   ,"");
		info.PMTG_INTT_YN   = istring.nvlString(info.PMTG_INTT_YN   ,"");
		info.ENTM_INTT_YN   = istring.nvlString(info.ENTM_INTT_YN   ,"");
		info.FNFU_BRRNO     = istring.nvlString(info.FNFU_BRRNO     ,"");
		info.FNFU_WBCSNO    = istring.nvlString(info.FNFU_WBCSNO    ,"");
		info.ZPCD           = istring.nvlString(info.ZPCD           ,"");
		info.BSC_ADRS       = istring.nvlString(info.BSC_ADRS       ,"");
		info.DTL_ADRS       = istring.nvlString(info.DTL_ADRS       ,"");
		info.RSPR           = istring.nvlString(info.RSPR           ,"");
		info.BLNG_NM        = istring.nvlString(info.BLNG_NM        ,"");
		info.FNFU_TLNO      = istring.nvlString(info.FNFU_TLNO      ,"");
		info.FXNO           = istring.nvlString(info.FXNO           ,"");
		info.EML_ADRS       = istring.nvlString(info.EML_ADRS       ,"");
		info.RISK_WGHT_RT   = istring.nvlString(info.RISK_WGHT_RT   ,"");
		info.FRST_RGSN_YMD  = istring.nvlString(info.FRST_RGSN_YMD  ,"");
		info.FRST_RGSN_EMNO = istring.nvlString(info.FRST_RGSN_EMNO ,"");
		info.LST_AMNN_YMD   = istring.nvlString(info.LST_AMNN_YMD   ,"");
		info.LAST_AMNN_EMNO = istring.nvlString(info.LAST_AMNN_EMNO ,"");	
	}
	
	return info;
}
// 과목코드 -> 한글과목명
// pSbcd : 3자리 과목코드
// objTxtBox : 이름을 세팅할 텍스트 박스
function fnConvertSbcdToSbcdnm(pSbcd, objTxtBox) {
	var info = new Object();
	var flag = false;
	
	if (pSbcd.length == 3) {
		iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
		iajax.addParam(iconst.CMD, iconst.CONVERT2SUBJ_NM);
		iajax.addParam("FNFU_SBCD", pSbcd);
		iajax.send();
		
		var resultCode = iajax.getValue(iconst.RESULT_CODE);
		var resultMsg = iajax.getValue(iconst.RESULT_MSG);
		
		// 거래 성공 여부
		if ( resultCode == iconst.SUCCESS_CODE ){
			info = iajax.getInfoFromXmlDoc(iajax.getXmlDoc(), "ConvertResult");
			var FNFU_SUBJ_NM = iajax.getValue("FNFU_SUBJ_NM");
			if ( arguments[1] ){
				objTxtBox.value = istring.nvlString(info.FNFU_SUBJ_NM, "");
			} else {
				flag = true;
			}
		} else {
			fnCheckAjaxResult(resultCode, resultMsg);
		}		
	} else {
		if ( arguments[1] ){
			objTxtBox.value = "";
		}else{
			flag = true;
		}
	}
	
	if ( flag ) {
		info.FNFU_SUBJ_NM = istring.nvlString(info.FNFU_SUBJ_NM, "");
	}
	return info;
}
// 시책코드 -> 한글시책명
// pSbcd : 3자리 과목코드
// pPolcCd : 4자리 시책코드
// pPolcClsfCd : 2자리 시책세부코드
// objTxtBox : 이름을 세팅할 텍스트 박스
function fnConvertPolcToPolcnm(pSbcd, pPolcCd, pPolcClsfCd, objTxtBox) {
	var info = new Array();
	var flag = false;
	
	if (pSbcd.length == 3 && pPolcCd.length == 4 && pPolcClsfCd.length == 2) {
		iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
		iajax.addParam(iconst.CMD, iconst.CONVERT2POLC_NM);
		iajax.addParam("SBCD", pSbcd);
		iajax.addParam("POLC_CD", pPolcCd);
		iajax.addParam("POLC_CLSF_CD", pPolcClsfCd);
		iajax.send();
		
		var resultCode = iajax.getValue(iconst.RESULT_CODE);
		var resultMsg = iajax.getValue(iconst.RESULT_MSG);
		
		// 거래 성공 여부
		if ( resultCode == iconst.SUCCESS_CODE ){
			info = iajax.getInfoFromXmlDoc(iajax.getXmlDoc(), "ConvertResult");
			
			if ( iajax.getValue("POLC_NM") == null || iajax.getValue("POLC_NM") == "" ) {
//				alert("시책명이 존재하지 않습니다.");
//				return;
				var POLC_NM = "";
			} else {
				var POLC_NM = iajax.getValue("POLC_NM")+" "+iajax.getValue("POLC_CLSF_NM");
			}
			if ( arguments[3] ){
				objTxtBox.value = istring.nvlString(POLC_NM,"");
			} else {
				flag = true;
			}
		} else {
			fnCheckAjaxResult(resultCode, resultMsg);
		}		
	} else {
		if ( arguments[3] ){
			objTxtBox.value = "";
		}else{
			flag = true;
		}
	}
	
	if ( flag ) {
		info.FNFU_SBCD            = istring.nvlString(info.FNFU_SBCD          , "");
		info.FNFU_POLC_CD         = istring.nvlString(info.FNFU_POLC_CD       , "");
		info.FNFU_POLC_CLCD       = istring.nvlString(info.FNFU_POLC_CLCD     , "");
		info.FNFU_SUBJ_NM         = istring.nvlString(info.FNFU_SUBJ_NM       , "");
		info.POLC_NM              = istring.nvlString(info.POLC_NM            , "");
		info.POLC_CLSF_NM         = istring.nvlString(info.POLC_CLSF_NM       , "");
		info.HNDL_MBCD            = istring.nvlString(info.HNDL_MBCD          , "");
		info.FNFU_BRNG_ISCD       = istring.nvlString(info.FNFU_BRNG_ISCD     , "");
		info.BRNG_RTO             = istring.nvlString(info.BRNG_RTO           , "");
		info.RPMN_RTO             = istring.nvlString(info.RPMN_RTO           , "");
		info.BRNG_FNDS_RTO        = istring.nvlString(info.BRNG_FNDS_RTO      , "");
		info.ONBN_FNDS_RTO        = istring.nvlString(info.ONBN_FNDS_RTO      , "");
		info.FNFU_RPMN_WAY_DSCD   = istring.nvlString(info.FNFU_RPMN_WAY_DSCD , "");
		info.PRNC_EQL_RPMN_RTO    = istring.nvlString(info.PRNC_EQL_RPMN_RTO  , "");
		info.EXPI_DTTM_RPMN_RTO   = istring.nvlString(info.EXPI_DTTM_RPMN_RTO , "");
		info.INPM_INCL_DSCD       = istring.nvlString(info.INPM_INCL_DSCD     , "");
		info.RPPL_WPIT_DSCD       = istring.nvlString(info.RPPL_WPIT_DSCD     , "");
		info.ICDNC_INCL_DSCD      = istring.nvlString(info.ICDNC_INCL_DSCD    , "");
		info.FNFU_INCC_WACD       = istring.nvlString(info.FNFU_INCC_WACD     , "");
		info.INCC_RPMN_DAY_INYN   = istring.nvlString(info.INCC_RPMN_DAY_INYN , "");
		info.INCC_HLLS_DSCD       = istring.nvlString(info.INCC_HLLS_DSCD     , "");
		info.ENYR_RPMN_DAY_INYN   = istring.nvlString(info.ENYR_RPMN_DAY_INYN , "");
		info.ENYR_HLLS_DSCD       = istring.nvlString(info.ENYR_HLLS_DSCD     , "");
		info.PRTT_EXCN_INCC_CD    = istring.nvlString(info.PRTT_EXCN_INCC_CD  , "");
		info.FNFU_DRDF_TERM       = istring.nvlString(info.FNFU_DRDF_TERM     , "");
		info.FNFU_DRRP_TERM       = istring.nvlString(info.FNFU_DRRP_TERM     , "");
		info.FNFU_FCDF_TERM       = istring.nvlString(info.FNFU_FCDF_TERM     , "");
		info.FNFU_FCRP_TERM       = istring.nvlString(info.FNFU_FCRP_TERM     , "");
		info.INPM_FRAM_UNCD       = istring.nvlString(info.INPM_FRAM_UNCD     , "");
		info.INPM_RPCL_DSCD       = istring.nvlString(info.INPM_RPCL_DSCD     , "");
		info.INPM_RPCL_CD         = istring.nvlString(info.INPM_RPCL_CD       , "");
		info.INPM_RPDA_CD         = istring.nvlString(info.INPM_RPDA_CD       , "");
		info.FNFU_IRQR_MMDD1      = istring.nvlString(info.FNFU_IRQR_MMDD1    , "");
		info.FNFU_IRQR_MMDD2      = istring.nvlString(info.FNFU_IRQR_MMDD2    , "");
		info.FNFU_IRQR_MMDD3      = istring.nvlString(info.FNFU_IRQR_MMDD3    , "");
		info.FNFU_IRQR_MMDD4      = istring.nvlString(info.FNFU_IRQR_MMDD4    , "");
		info.INTS_FRAM_PCCD       = istring.nvlString(info.INTS_FRAM_PCCD     , "");
		info.INTS_FRAM_UNCD       = istring.nvlString(info.INTS_FRAM_UNCD     , "");
		info.INRP_CYCL_DSCD       = istring.nvlString(info.INRP_CYCL_DSCD     , "");
		info.INRP_CYCD            = istring.nvlString(info.INRP_CYCD          , "");
		info.INTS_RPDA_CD         = istring.nvlString(info.INTS_RPDA_CD       , "");
		info.FNFU_IRQT_MMDD1      = istring.nvlString(info.FNFU_IRQT_MMDD1    , "");
		info.FNFU_IRQT_MMDD2      = istring.nvlString(info.FNFU_IRQT_MMDD2    , "");
		info.FNFU_IRQT_MMDD3      = istring.nvlString(info.FNFU_IRQT_MMDD3    , "");
		info.FNFU_IRQT_MMDD4      = istring.nvlString(info.FNFU_IRQT_MMDD4    , "");
		info.BFRP_WACD            = istring.nvlString(info.BFRP_WACD          , "");
		info.BFRP_PLAN_RCRT_YN    = istring.nvlString(info.BFRP_PLAN_RCRT_YN  , "");
		info.INRY_PLAN_RCRT_YN    = istring.nvlString(info.INRY_PLAN_RCRT_YN  , "");
		info.FNFU_LODR_ATCD       = istring.nvlString(info.FNFU_LODR_ATCD     , "");
		info.FNFU_LOFC_ATCD       = istring.nvlString(info.FNFU_LOFC_ATCD     , "");
		info.FNFU_LODR_POLC_CD    = istring.nvlString(info.FNFU_LODR_POLC_CD  , "");
		info.FNFU_LOFC_POLC_CD    = istring.nvlString(info.FNFU_LOFC_POLC_CD  , "");
		info.WRFN_ATCD            = istring.nvlString(info.WRFN_ATCD          , "");
		info.FCFN_ATCD            = istring.nvlString(info.FCFN_ATCD          , "");
		info.WRFN_LINE_CD         = istring.nvlString(info.WRFN_LINE_CD       , "");
		info.WRFN_GRP_CD          = istring.nvlString(info.WRFN_GRP_CD        , "");
		info.WRFN_TMPL_CD         = istring.nvlString(info.WRFN_TMPL_CD       , "");
		info.WRFN_PRDC_CD         = istring.nvlString(info.WRFN_PRDC_CD       , "");
		info.WRFN_INTL_CD         = istring.nvlString(info.WRFN_INTL_CD       , "");
		info.FCFN_LINE_CD         = istring.nvlString(info.FCFN_LINE_CD       , "");
		info.FCFN_GRP_CD          = istring.nvlString(info.FCFN_GRP_CD        , "");
		info.FCFN_TMPL_CD         = istring.nvlString(info.FCFN_TMPL_CD       , "");
		info.FCFN_PRDC_CD         = istring.nvlString(info.FCFN_PRDC_CD       , "");
		info.FCFN_INTL_CD         = istring.nvlString(info.FCFN_INTL_CD       , "");
		info.JRNL_DLN_DDNC        = istring.nvlString(info.JRNL_DLN_DDNC      , "");
		info.JRNL_DLN_DDNC_DSCD   = istring.nvlString(info.JRNL_DLN_DDNC_DSCD , "");
		info.WTCNS_BILN_DDNC      = istring.nvlString(info.WTCNS_BILN_DDNC    , "");
		info.APLY_SYMD            = istring.nvlString(info.APLY_SYMD          , "");
		info.APLY_EYMD            = istring.nvlString(info.APLY_EYMD          , "");
		info.USE_YN               = istring.nvlString(info.USE_YN             , "");
		info.FRUS_YN              = istring.nvlString(info.FRUS_YN            , "");
		info.BFRP_IMDT_YN         = istring.nvlString(info.BFRP_IMDT_YN       , "");
		info.RGIR_IMDT_YN         = istring.nvlString(info.RGIR_IMDT_YN       , "");
		info.EXPI_DTTM_BSDD_CD    = istring.nvlString(info.EXPI_DTTM_BSDD_CD  , "");
		info.LODR_DFRM_TERM       = istring.nvlString(info.LODR_DFRM_TERM     , "");
		info.LODR_RPMN_TERM       = istring.nvlString(info.LODR_RPMN_TERM     , "");
		info.LOFC_DFRM_TERM       = istring.nvlString(info.LOFC_DFRM_TERM     , "");
		info.LOFC_RPMN_TERM       = istring.nvlString(info.LOFC_RPMN_TERM     , "");
		info.AMLN_RPCL_DSCD       = istring.nvlString(info.AMLN_RPCL_DSCD     , "");
		info.ALRP_CYCL_CD         = istring.nvlString(info.ALRP_CYCL_CD       , "");
		info.AMLN_RPDA_CD         = istring.nvlString(info.AMLN_RPDA_CD       , "");
		info.ALRP_QRTR_MMDD1      = istring.nvlString(info.ALRP_QRTR_MMDD1    , "");
		info.ALRP_QRTR_MMDD2      = istring.nvlString(info.ALRP_QRTR_MMDD2    , "");
		info.ALRP_QRTR_MMDD3      = istring.nvlString(info.ALRP_QRTR_MMDD3    , "");
		info.ALRP_QRTR_MMDD4      = istring.nvlString(info.ALRP_QRTR_MMDD4    , "");
		info.CNCL_YN              = istring.nvlString(info.CNCL_YN            , "");
		info.RMK3                 = istring.nvlString(info.RMK3               , "");
		info.FRST_RGSN_YMD        = istring.nvlString(info.FRST_RGSN_YMD      , "");
		info.FRST_RGSN_EMNO       = istring.nvlString(info.FRST_RGSN_EMNO     , "");
		info.LST_AMNN_YMD         = istring.nvlString(info.LST_AMNN_YMD       , "");
		info.LAST_AMNN_EMNO       = istring.nvlString(info.LAST_AMNN_EMNO     , "");
	}		
	return info;
}
// 추천서번호 -> 추천업체명
// sgshNo : 12자리 추천서번호
// objTxtBox : 이름을 세팅할 텍스트 박스
function fnConvertSgshNoToRcmdEnnm(sgshNo, objTxtBox) {
	var info = new Object();
	var flag = false;
	
	if (sgshNo.length == 12) {
		iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
		iajax.addParam(iconst.CMD, iconst.CONVERT2RCMD_ENNM);
		iajax.addParam("FNFU_SGSH_NO", sgshNo);
		iajax.send();
		
		var resultCode = iajax.getValue(iconst.RESULT_CODE);
		var resultMsg = iajax.getValue(iconst.RESULT_MSG);
		
		// 거래 성공 여부
		if ( resultCode == iconst.SUCCESS_CODE ){
			info = iajax.getInfoFromXmlDoc(iajax.getXmlDoc(), "ConvertResult");
			var FNFU_RCMD_ENNM = iajax.getValue("FNFU_RCMD_ENNM");
			if ( arguments[1] ){
				objTxtBox.value = istring.nvlString(info.FNFU_RCMD_ENNM, "");
			} else {
				flag = true;
			}
		} else {
			fnCheckAjaxResult(resultCode, resultMsg);
		}		
	} else {
		if ( arguments[1] ){
			objTxtBox.value = "";
		}else{
			flag = true;
		}
	}
	
	if ( flag ) {
		info.FNFU_RCMD_ENNM = istring.nvlString(info.FNFU_RCMD_ENNM, "");
	}
	return info;
}
// 협약대출기관코드 -> 협약대출기관명찾기
// pAglnIntt : 6자리 사번
// objTxtBox : 이름을 세팅할 텍스트 박스
function fnConvertAglnIscdToAglnInttNm(pAglnIscd, objTxtBox) {
	var info = new Object();
	var flag = false;
	if (pAglnIscd.length == 4) {
		iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
		iajax.addParam(iconst.CMD, iconst.CONVERT2AGLN_INTT_NM);
		iajax.addParam("AGLN_ISCD", pAglnIscd);
		iajax.send();
		
		var resultCode = iajax.getValue(iconst.RESULT_CODE);
		var resultMsg = iajax.getValue(iconst.RESULT_MSG);
		
		// 거래 성공 여부
		if ( resultCode == iconst.SUCCESS_CODE ){
			
			info = iajax.getInfoFromXmlDoc(iajax.getXmlDoc(), "ConvertResult");
			var AGLN_INTT_NM = iajax.getValue("AGLN_INTT_NM");
			
			if ( arguments[1] ){
				objTxtBox.value = istring.nvlString(AGLN_INTT_NM, "");
			}else{
				flag = true;
			}
		} else {
			fnCheckAjaxResult(resultCode, resultMsg);
		}		
	} else {
		if ( arguments[1] ){
			objTxtBox.value = "";
		}else{
			flag = true;
		}
	}
	if ( flag ){
		info.AGLN_INTT_NM = istring.nvlString(info.AGLN_INTT_NM, "");
	}
		
	return info;
}
// C2기관코드 -> C2기관명찾기
// pC2Iscd : 4자리 기관코드
// objTxtBox : 이름을 세팅할 텍스트 박스
function fnConvertC2IscdToInttNm(pC2Iscd, objTxtBox) {
	var info = new Object();
	var flag = false;
	if (pC2Iscd.length == 4) {
		iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
		iajax.addParam(iconst.CMD, iconst.CONVERT2C2_INTT_NM);
		iajax.addParam("C2_ISCD", pC2Iscd);
		iajax.send();
		
		var resultCode = iajax.getValue(iconst.RESULT_CODE);
		var resultMsg = iajax.getValue(iconst.RESULT_MSG);
		
		// 거래 성공 여부
		if ( resultCode == iconst.SUCCESS_CODE ){
			
			info = iajax.getInfoFromXmlDoc(iajax.getXmlDoc(), "ConvertResult");
			var INTT_NM = iajax.getValue("INTT_NM");
			
			if ( arguments[1] ){
				objTxtBox.value = istring.nvlString(INTT_NM, "");
			}else{
				flag = true;
			}
		} else {
			fnCheckAjaxResult(resultCode, resultMsg);
		}		
	} else {
		if ( arguments[1] ){
			objTxtBox.value = "";
		}else{
			flag = true;
		}
	}
	if ( flag ){
		info.INTT_NM = istring.nvlString(info.INTT_NM, "");
	}
		
	return info;
}
// C2부문코드 -> C2부문명찾기
// pC2SctnCd : 4자리 C2부문코드
// pC2DtlsSctnCd : 2자리 C2부문세부코드
// objTxtBox : 이름을 세팅할 텍스트 박스
function fnConvertC2SctnCdToC2SctnNm(pC2SctnCd, pC2DtlsSctnCd, objTxtBox) {
	var info = new Object();
	var flag = false;
	if (pC2SctnCd.length == 4 && pC2DtlsSctnCd.length == 2) {
		iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
		iajax.addParam(iconst.CMD, iconst.CONVERT2C2_SCTN_NM);
		iajax.addParam("C2_SCTN_CD", pC2SctnCd);
		iajax.addParam("C2_DTLS_SCTN_CD", pC2DtlsSctnCd);
		iajax.send();
		
		var resultCode = iajax.getValue(iconst.RESULT_CODE);
		var resultMsg = iajax.getValue(iconst.RESULT_MSG);
		// 거래 성공 여부
		if ( resultCode == iconst.SUCCESS_CODE ){
			
			info = iajax.getInfoFromXmlDoc(iajax.getXmlDoc(), "ConvertResult");
			var C2_SCTN_NM = iajax.getValue("C2_SCTN_NM");
			
			if ( arguments[2] ){
				objTxtBox.value = istring.nvlString(C2_SCTN_NM, "");
			}else{
				flag = true;
			}
		} else {
			fnCheckAjaxResult(resultCode, resultMsg);
		}		
	} else {
		if ( arguments[2] ){
			objTxtBox.value = "";
		}else{
			flag = true;
		}
	}
	if ( flag ){
		info.C2_SCTN_NM = istring.nvlString(info.C2_SCTN_NM, "");
	}
	return info;
}
// 협약대출상품코드 -> 상품명찾기
// line_cd : 2자리
// grp_cd : 2자리
// tmpl_cd : 3자리
// prdc_cd : 3자리
// intl_cd, : 3자리
// objTxtBox : 이름을 세팅할 텍스트 박스
function fnConvertAglnPolcToAglnPolcNm(line_cd, grp_cd, tmpl_cd, prdc_cd, intl_cd, objTxtBox)
{
	var info = new Object();
	var flag = false;
	if (line_cd.length == 2 && grp_cd.length == 2 && tmpl_cd.length == 3 && prdc_cd.length == 3 && intl_cd.length == 3) 
	{
		iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
		iajax.addParam(iconst.CMD, iconst.CONVERT2AGLN_POLC_NM);
		iajax.addParam("LINE_CD", line_cd);
		iajax.addParam("GRP_CD", grp_cd);
		iajax.addParam("TMPL_CD", tmpl_cd);
		iajax.addParam("PRDC_CD", prdc_cd);
		iajax.addParam("INTL_CD", intl_cd);
		iajax.send();
		
		var resultCode 	= iajax.getValue(iconst.RESULT_CODE);
		var resultMsg 	= iajax.getValue(iconst.RESULT_MSG);
		
		// 거래 성공 여부
		if ( resultCode == iconst.SUCCESS_CODE )
		{
			info = iajax.getInfoFromXmlDoc(iajax.getXmlDoc(), "ConvertResult");
			var AGLN_POLC_NM = iajax.getValue("AGLN_POLC_NM");
			
			if ( arguments[1] ){
				objTxtBox.value = istring.nvlString(AGLN_POLC_NM, "");
			}else{
				flag = true;
			}
		} else {
			fnCheckAjaxResult(resultCode, resultMsg);
		}		
	} else {
		if ( arguments[1] ){
			objTxtBox.value = "";
		}else{
			flag = true;
		}
	}
	if ( flag ){
		info.AGLN_POLC_NM = istring.nvlString(info.AGLN_POLC_NM, "");
	}
		
	return info;
	
}
/*********************************************************
*  COMBOBOX SET
*********************************************************/
/*******************************************************
 * 과목 & 시책코드 -> 추천기관 setting
 * 과목 & 시책 & 세부코드 -> 취급모점 setting
 * pSbcd : 3자리 과목코드
 * pPolcCd : 4자리 시책코드
 * pPolcClcd : 2자리 시책세부코드
 * objTxtBox : 이름을 세팅할 텍스트 박스
 *******************************************************/
function fnSetRcmdIscd(pSbcd, pPolcCd, pPolcClcd) {
	if (pPolcClcd == null || pPolcClcd == "" ) {		
		iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
		iajax.addParam(iconst.CMD, iconst.SET_RCMD_ISCD);
		iajax.addParam("FNFU_SBCD", pSbcd);
		iajax.addParam("FNFU_POLC_CD", pPolcCd);
		iajax.send();
		
		var resultCode = iajax.getValue(iconst.RESULT_CODE);
		var resultMsg = iajax.getValue(iconst.RESULT_MSG);
		
		// 거래 성공 여부
		if ( resultCode == iconst.SUCCESS_CODE ){
			//iobject.setValue(frmDetail.cmbFNFU_RCMD_ISCD, iajax.getValue("FNFU_ISCD"));
			iajax.setComboValue(frmDetail.cmbFNFU_RCMD_ISCD, "ResultSet", "FNFU_ISCD", "INTT_NM", "");
		} else {
			fnCheckAjaxResult(resultCode, resultMsg);
		}		
	} else {
		iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
		iajax.addParam(iconst.CMD, iconst.SET_RCMD_ISCD);
		iajax.addParam("FNFU_SBCD", pSbcd);
		iajax.addParam("FNFU_POLC_CD", pPolcCd);
		iajax.addParam("FNFU_POLC_CLCD", pPolcClcd);
		iajax.send();
		
		var resultCode = iajax.getValue(iconst.RESULT_CODE);
		var resultMsg = iajax.getValue(iconst.RESULT_MSG);
		
		// 거래 성공 여부
		if ( resultCode == iconst.SUCCESS_CODE ){
			//iajax.setComboValue(frmDetail.cmbHNDL_MBCD, "ResultSet", "FNFU_BRCD", "BRNM", "");
			iobject.setValue(frmDetail.cmbHNDL_MBCD,      iajax.getValue("FNFU_BRCD"));
			iobject.setValue(frmDetail.txtFNFU_BRNG_ISCD, iajax.getValue("FNFU_BRNG_ISCD"));
						
			iobject.setValue(frmDetail.txtFNFU_DRDF_TERM, iajax.getValue("FNFU_DRDF_TERM"));
			iobject.setValue(frmDetail.txtFNFU_DRRP_TERM, iajax.getValue("FNFU_DRRP_TERM"));
			iobject.setValue(frmDetail.txtFNFU_FCDF_TERM, iajax.getValue("FNFU_FCDF_TERM"));
			iobject.setValue(frmDetail.txtFNFU_FCRP_TERM, iajax.getValue("FNFU_FCRP_TERM"));
		} else {
			fnCheckAjaxResult(resultCode, resultMsg);
		}		
	}
}
// 계정코드 -> 계정코드명
// pBrcd : 10자리 계정코드
// objTxtBox : 이름을 세팅할 텍스트 박스
function fnConvertGyecordToAcitcdnm(pcode, objTxtBox) {
	var info = new Object();
	var flag = false;
	if (pcode.length == 10) {
		iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
		iajax.addParam(iconst.CMD, iconst.CONVERT2ACIT_CD_NM);
		iajax.addParam("ATCD", pcode);				
		
		iajax.send();
		
		var resultCode = iajax.getValue(iconst.RESULT_CODE);
		var resultMsg = iajax.getValue(iconst.RESULT_MSG);
		
		// 거래 성공 여부
		if ( resultCode == iconst.SUCCESS_CODE ){
			info = iajax.getInfoFromXmlDoc(iajax.getXmlDoc(), "ConvertResult");
			var ATCD_NM = iajax.getValue("ATCD_NM");
		    
			if ( arguments[1] ){
				objTxtBox.value = istring.nvlString(info.ATCD_NM, "");
			} else {
				flag = true;
			}
		} else {
			fnCheckAjaxResult(resultCode, resultMsg);
		}		
	} else {
		if ( arguments[1] ){
			objTxtBox.value = "";
		}else{
			flag = true;
		}
	}
	if ( flag ){
		info.ATCD_NM = istring.nvlString(info.ATCD_NM, "");
	}
	return info;
}
/*********************************************************
*  COMBOBOX SET
*********************************************************/
/*******************************************************
 * C2 관리점에 해당하는 영업점 찾기
 * pMbcd : 4자리 관리점
 *******************************************************/
function fnC2MngmBrcd(pMbcd, pTopText) {
	if (pMbcd != null && pMbcd != "" ) {		
		iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
		iajax.addParam(iconst.CMD, "C2_MNGM_BRCD");
		iajax.addParam("MBCD", pMbcd);
		iajax.send();
		
		var resultCode = iajax.getValue(iconst.RESULT_CODE);
		var resultMsg = iajax.getValue(iconst.RESULT_MSG);
		
		// 거래 성공 여부
		if ( resultCode == iconst.SUCCESS_CODE ){
			//iobject.setValue(frmDetail.cmbFNFU_RCMD_ISCD, iajax.getValue("FNFU_ISCD"));
			if ( arguments[1] )
				iajax.setComboValue(frmSearch.cmbMNGM_BRCD, "ResultSet", "MNGM_BRCD", "MNGM_BRCD_NM", "", pTopText);	
			else
				iajax.setComboValue(frmSearch.cmbMNGM_BRCD, "ResultSet", "MNGM_BRCD", "MNGM_BRCD_NM", "", pTopText);	
			
		} else {
			fnCheckAjaxResult(resultCode, resultMsg);
		}		
	}
}
]]>
</xsl:text>
</script><!-->mxtype@wscript<--><script language="JavaScript" name="checkScript" mxtype="wscript" capx="2" capy="29">
<xsl:text disable-output-escaping="yes">
<![CDATA[
// 상환등에서 상환일은 휴일을 선택할 수 없다.
// onFocusOut에 fnCheckBizday(this) 추가
function fnCheckBizday(objTxtBox, oriDate) {
	
	iajax.openSync("iFrame?Class=com.ibk.pccs.com.cm.cmcm000Svc");
	iajax.addParam(iconst.CMD,  iconst.BIZDAY);
	iajax.addParam("DATE", objTxtBox.value);
	iajax.send();
	
	
	var resultCode = iajax.getValue(iconst.RESULT_CODE);
	var resultMsg  = iajax.getValue(iconst.RESULT_MSG);	
	
	// 거래 성공 여부
	if ( resultCode == iconst.SUCCESS_CODE ) {
		if (iajax.getValue("BIZDAY_YN") == "Y") {
			// pass
		} else {
			alert("휴일은 선택하실 수 없습니다.");
			objTxtBox.value = oriDate.value;
//			objTxtBox.focus();
//			objTxtBox.value = objTxtBox.value.replace(/-/g);
//			objTxtBox.createTextRange().select();
		}
	} else {
		ing.hide();
		fnCheckAjaxResult(resultCode, resultMsg);
	}			
}
]]>
</xsl:text>
</script><!-->mxtype@wscript<-->
<!-->
기존 시스템에 있던\nEvent check script
<--><script language="JavaScript" name="wscript1" mxtype="wscript" src="/resource/script/checkEvent.js">
</script><!-->mxtype@wscript<-->
<!-->
에러발생시메세지
<--><script name="error" mxtype="wscript" src="/resource/script/error.js">
</script><!-->mxtype@wscript<-->
</xsl:template>										  
</xsl:stylesheet>									  
